package oa.hleast.xswl.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import oa.hleast.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author 00209
 * @Date 2021/03/01 22:01:45
 */
@Data
//@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class SysMenu extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long parentId;

    private String name;

    private String icon;

    private String path;

    private String component;

    private Integer sort;

    private Integer visible;

    private String redirect;

    /**
     * 跳转参数
     */
    private String params;

    @TableField(exist = false)
    private List<Integer> roles;


    @ApiModelProperty("是否自动创建菜单 0手动， 1自动")
    private Integer isAutoCreated;

}
